#ifndef WIFI_HTTP_H
#define WIFI_HTTP_H

#include "esp_event.h"
#include "esp_wifi.h"
#include "esp_http_client.h"
#include "nvs_flash.h"

extern bool wifi_connected;
extern bool http_request_failed;

void wifi_init();
esp_err_t http_event_handler(esp_http_client_event_t *evt);
void decode_jpeg_to_rgb565(uint8_t *jpg_data, size_t jpg_size);

#endif // WIFI_HTTP_H